package com.wtwd.wtwddevice.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.wtwd.device.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2024-06-04
 */
@ApiModel(value="DeviceAlarmInfo对象", description="")
public class DeviceAlarmInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "4g闹钟主键id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "设备id")
    private Long deviceId;

    @ApiModelProperty(value = "时间：HH:mm 例：23:00")
    private String time;

    @ApiModelProperty(value = "周期：周一至周六用1-6表示，周日用0表示, 如1+2+3+4表示周一至周四")
    private String cycle;

    @ApiModelProperty(value = "闹钟名 行为闹钟无闹钟名 预留字段")
    private String name;

    @ApiModelProperty(value = "生效位标识0代表不生效，1代表生效")
    private Integer flag;

    @ApiModelProperty(value = "序列号")
    private String number;

    @ApiModelProperty(value = "闹钟类型0:普通闹钟，1:测量体温闹钟2:关机 闹钟3:开机闹钟。")
    private Integer type;

    @ApiModelProperty(value = "0.下发成功  1 下发中")
    private Integer state;

    @ApiModelProperty(value = "0 正常数据 1.标记应该删除数据")
    private Integer isRemove;

    public Integer getIsRemove() {
        return isRemove;
    }

    public void setIsRemove(Integer isRemove) {
        this.isRemove = isRemove;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getCycle() {
        return cycle;
    }

    public void setCycle(String cycle) {
        this.cycle = cycle;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "DeviceAlarmInfo{" +
                "id=" + id +
                ", deviceId=" + deviceId +
                ", time='" + time + '\'' +
                ", cycle='" + cycle + '\'' +
                ", name='" + name + '\'' +
                ", flag=" + flag +
                ", number='" + number + '\'' +
                ", type=" + type +
                ", state=" + state +
                ", isRemove=" + isRemove +
                '}';
    }
}
